What does a container provide that a virtual machine does not. First, simple deployment. By packaging your
application as a singularly addressable,
registry stored, one command line
deployable component, a container radically simplifies the deployment of your app no matter where
you're deploying it. Second, rapid availability. By abstracting just the OS instead of the whole
physical computer, this package can boot in
about one-twentieth of a second compared to a minute or so for a modern virtual machine. Third, the ability to
create microservices. Containers allow developers and operators to further
subdivide compute resources. If a micro VM instance seems like overkill
for your app or if scaling an entire VM at a time seems like a
big step function, containers will make a big positive impact in your systems. What are the implications of
some of these advantages? A developer has in
their laptop plenty of compute power to run multiple containers making for easier and faster development. Although it is
certainly possible to run several virtual
machines in a laptop, it's far from fast,
easy, or lightweight. Similarly, release
administration is easier. Pushing a new version of a
container is a single command. Testing is also cheaper. In a public cloud
where a VM is built for a minimum of ten
minutes of compute time, a single test might only
cost you a small amount, but if you're
running thousands of programmatically driven tests per day this starts to add up. With a container, you could do thousands of simple
tests at the same cost, amounting to large savings for your production applications. Another implication
is the composability of application systems
using this model, especially with applications
using open source software. Although it might be a daunting systems
administration task for a developer to install and configure MySQL,
Memcached, MongoDB, Hadoop, RabbitMQ, Node.js, Nginx, and so on together on a single box to provide a platform
for their application, it is much easier and a
vastly lower risk to start a few containers housing these applications with some
very compact scripting. This model eliminates the
significant amount of error prone specialized
boilerplate work. We use Kubernetes to
manage our containers. Kubernetes is an open source tool which manages container
orchestration. Benefits include, automation. Kubernetes automates
the deployment, scaling, load balancing, logging, monitoring, and other management features of
containerized applications. Efficiency. By specifying CPU and memory requirements
of containers, Kubernetes can efficiently
pack containers and nodes to efficiently
use compute nodes. Declarative configuration. You can configure the desired
state you want to achieve rather than issuing a series of commands to achieve
that desired state. Kubernetes will make your system conform to that desired state. This greatly reduces the operational complexity
of large systems. Self-healing. Kubernetes
can automatically replace containers that have failed or are failing
a health check. This leads to many fewer
middle-of-the-night pages for operation staff. Google Kubernetes Engine, or GKE, is Google Cloud's
fully managed solution for running containers. GKE scales, repairs, and manages your cluster of
compute nodes that runs your Kubernetes
managed containers.